package com.sample.container.util;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;

public class CollectionUtil<T> {
	
	public void fills(int length,boolean random){
//		Type type=((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]; 
		Type type=(Class<T>) ((ParameterizedType) getClass()
                .getGenericSuperclass()).getActualTypeArguments()[0];
		
	}


	public static void main(String[] args){
		CollectionUtil<Integer> integerCollection=new CollectionUtil<Integer>();
		integerCollection.fills(4, true);
	}
}
